package annotation.project;



public class MyCalculator implements Calculator {

    @Override
    public int add(int i, int j) throws NoSuchMethodException {
        Integer result = i+j;
        System.out.println("add:"+result);
        return result;
    }

    @Override
    public Integer add(Integer i, Integer j) throws NoSuchMethodException {
        Integer result = i+j;
        System.out.println("add2:"+result);
        return result;
    }
    @Override
    public Integer sub(Integer i, Integer j) throws NoSuchMethodException {
        Integer result = i-j;
        System.out.println("sub:"+result);
        return result;
    }
    @Override
    public Integer mul(Integer i, Integer j) throws NoSuchMethodException {
        Integer result = i*j;
        System.out.println("mul:"+result);
        return result;
    }
    @Override
    public Integer div(Integer i, Integer j) throws NoSuchMethodException {
        Integer result = i/j;
        System.out.println("div:"+result);
        return result;
    }

    public Integer show(Integer i){
        System.out.println("show .....");
        return i;
    }
}
